var passport = passport || window.passport || {};
passport._modulePool = passport._modulePool || {},
passport._define = passport._define ||function(a, s) {
	passport._modulePool[a] = s && s()
}, 
passport._getModule = passport._getModule ||function(a) {
	return passport._modulePool[a]
}, 
passport._load = passport._load ||function(a, s, e) {
	if (s) {
		var t = document,
			n = t.createElement("SCRIPT");
		n.type = "text/javascript", n.charset = "UTF-8";
		var r = a.split("?")[0],
			o = Math.round(1e3 * Math.random()),
			p = (new Date).getTime();
		n.readyState ? n.onreadystatechange = function() {
			if ("loaded" == n.readyState || "complete" == n.readyState) {
				if (n.onreadystatechange = null, 100 == o) {
					var a = (new Date).getTime() - p;
					(new Image).src = document.location.protocol + "//nsclick.baidu.com/v.gif?pid=111&type=1023&url=" + encodeURIComponent(r) + "&time=" + a
				}
				e && e()
			}
		} : n.onload = function() {
			if (100 == o) {
				var a = (new Date).getTime() - p;
				(new Image).src = document.location.protocol + "//nsclick.baidu.com/v.gif?pid=111&type=1023&url=" + encodeURIComponent(r) + "&time=" + a
			}
			e && e()
		}, n.src = 100 == o ? r + "?t=" + Math.random() : a, t.getElementsByTagName("head")[0].appendChild(n)
	} else {
		var t = document,
			n = t.createElement("SCRIPT");
		n.type = "text/javascript", n.charset = "UTF-8", n.src = a, t.getElementsByTagName("head")[0].appendChild(n), n.readyState ? n.onreadystatechange = function() {
			("loaded" == n.readyState || "complete" == n.readyState) && (n.onreadystatechange = null, e && e())
		} : n.onload = function() {
			e && e()
		}
	}
}, 
passport._use = passport._use || function(a, s, e) {
	function t() {
		var a = passport._getModule(p);
		if (!a) throw new Error("load " + p + "module script error.");
		e && e(a)
	}
	var n = {
		"http:": "http://passport.bdimg.com",
		"https:": "https://ss0.bdstatic.com/5LMZfyabBhJ3otebn9fN2DJv"
	};
	if (passport && "https" == passport._protocol) var r = "https:";
	else var r = window.location ? window.location.protocol.toLowerCase() : document.location.protocol.toLowerCase();
	var o = (n[r] || n["https:"]) + s,
		p = a + ".js";
	moduleInstance = passport._getModule(p), moduleInstance ? e && e(moduleInstance) : passport._load(o, !0, t)
}, 
passport.use = passport.use || function(a, s, e) {
	var t = s && s.tangram === !1 ? "" : "_tangram";
	s && s.protocol && (passport._protocol = s.protocol), "reg" == a && s && s.regPhoneOnly && (a = "regPhone");
	var n = {
		login: "/passApi/js/login_e3f5770.js",
		login_tangram: "/passApi/js/login_tangram_6cae1dc.js",
		smsloginEn: "/passApi/js/smsloginEn_7849838.js",
		smsloginEn_tangram: "/passApi/js/smsloginEn_tangram_4cd255a.js",
		loginWLtoPC: "/passApi/js/loginWLtoPC_49afe25.js",
		accConnect: "/passApi/js/accConnect_3efe45b.js",
		accConnect_tangram: "/passApi/js/accConnect_tangram_9bcbf1f.js",
		accRealName: "/passApi/js/accRealName_9d60efb.js",
		accRealName_tangram: "/passApi/js/accRealName_tangram_638ff7b.js",
		checkPhone: "/passApi/js/checkPhone_a02e974.js",
		checkPhone_tangram: "/passApi/js/checkPhone_tangram_0e6c064.js",
		checkIDcard: "/passApi/js/checkIDcard_b4fcfb3.js",
		checkIDcard_tangram: "/passApi/js/checkIDcard_tangram_32944cc.js",
		accSetPwd: "/passApi/js/accSetPwd_b7493a7.js",
		accSetPwd_tangram: "/passApi/js/accSetPwd_tangram_e2330c5.js",
		IDCertify: "/passApi/js/IDCertify_ebb9bf8.js",
		IDCertify_tangram: "/passApi/js/IDCertify_tangram_31c0cea.js",
		secondCardVerify: "/passApi/js/secondCardVerify_d63c6b0.js",
		secondCardVerify_tangram: "/passApi/js/secondCardVerify_tangram_0cd04e5.js",
		IDCertifyQrcode: "/passApi/js/IDCertifyQrcode_302c81b.js",
		IDCertifyQrcode_tangram: "/passApi/js/IDCertifyQrcode_tangram_2da6aac.js",
		loadingApi: "/passApi/js/loadingApi_b0da2c7.js",
		loadingApi_tangram: "/passApi/js/loadingApi_tangram_c279f82.js",
		loginWap: "/passApi/js/loginWap_cb11302.js",
		reg: "/passApi/js/reg_c96315a.js",
		reg_tangram: "/passApi/js/reg_tangram_d79f691.js",
		regPhone: "/passApi/js/regPhone_c181958.js",
		regPhone_tangram: "/passApi/js/regPhone_tangram_01974d8.js",
		fillUserName: "/passApi/js/fillUserName_e15fd57.js",
		fillUserName_tangram: "/passApi/js/fillUserName_tangram_9c0abb1.js",
		qrcode: "/passApi/js/qrcode_ce57dba.js",
		qrcode_tangram: "/passApi/js/qrcode_tangram_9c4f660.js",
		realUserTag: "/passApi/js/realUserTag_6b391f6.js",
		realUserTag_tangram: "/passApi/js/realUserTag_tangram_66c443c.js",
		bind: "/passApi/js/bind_5ac2094.js",
		bind_tangram: "/passApi/js/bind_tangram_e47b68b.js",
		multiBind: "/passApi/js/multiBind_b1ecea8.js",
		multiBind_tangram: "/passApi/js/multiBind_tangram_55689f7.js",
		multiUnbind: "/passApi/js/multiUnbind_64fc76f.js",
		multiUnbind_tangram: "/passApi/js/multiUnbind_tangram_7f1d9f5.js",
		changeUser: "/passApi/js/changeUser_64ed487.js",
		changeUser_tangram: "/passApi/js/changeUser_tangram_c5a5756.js",
		loginMultichoice: "/passApi/js/loginMultichoice_86de21d.js",
		loginMultichoice_tangram: "/passApi/js/loginMultichoice_tangram_4f1a00a.js",
		confirmWidget: "/passApi/js/confirmWidget_f2af132.js",
		confirmWidget_tangram: "/passApi/js/confirmWidget_tangram_9b1795e.js",
		uni_rebindGuide: "/passApi/js/uni_rebindGuide_a831354.js",
		uni_rebindGuide_tangram: "/passApi/js/uni_rebindGuide_tangram_cf5a921.js"
	},
	r = a + t;
	2 == arguments.length && (e = s), 
	s && s.tangramInst && (passport.tangramInst = s.tangramInst), 
	passport._use(r, n[r], e);
};